Lessons I learned while building my own coding agent from scratch.